package com.bawei.wyg.mycommerce.databinding.rec;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import android.os.Bundle;

import com.bawei.wyg.mycommerce.BR;
import com.bawei.wyg.mycommerce.R;
import com.bawei.wyg.mycommerce.databinding.ActivityRecleMainBinding;


public class RecleMainActivity extends AppCompatActivity {
    ActivityRecleMainBinding binding;
    AdapterViewModel viewModel;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding= DataBindingUtil.setContentView(this,R.layout.activity_recle_main);
        viewModel=new ViewModelProvider(this, new ViewModelProvider.Factory() {
            @NonNull
            @Override
            public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
                return (T) new AdapterViewModel();
            }
        }).get(AdapterViewModel.class);
        binding.setVariable(BR.vm,viewModel);
    }
    public class SingleClick{
        public void isCheckAll(){

        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        binding.unbind();
    }
}